import Vue from 'vue'
import App from './App'
import router from './router'

import { Header, Button,Swipe,SwipeItem } from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.component(Header.name, Header)
Vue.component(Button.name, Button)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

import '@/assets/lib/mui/css/mui.css'
import '@/assets/lib/mui/css/icons-extra.css'

import moment from 'moment'
Vue.filter('dataFom',function(dateStr,aasd="YYYY-MM-DD HH:mm:ss"){
    return moment(dateStr).format(aasd);
})

import axios from 'axios'
Vue.prototype.$http=axios.create({
  baseURL:'http://www.liulongbin.top:3005/'
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
